
[dbo].[SalesHistoryMemorialTribute]
CREATE TABLE [dbo].[SalesHistoryMemorialTribute]
(
[SalesHistoryMemorialTributeKey] [uniqueidentifier] NOT NULL,
[SalesHistoryKey] [uniqueidentifier] NOT NULL,
[ContactKey] [uniqueidentifier] NULL,
[Description] [nvarchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesHistoryMemorialTribute] ADD CONSTRAINT [PK_SalesHistoryMemorialTribute] PRIMARY KEY CLUSTERED ([SalesHistoryMemorialTributeKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SalesHistoryMemorialTribute] ADD CONSTRAINT [FK_SalesHistoryMemorialTribute_ContactMain] FOREIGN KEY ([ContactKey]) REFERENCES [dbo].[ContactMain] ([ContactKey])
GO
ALTER TABLE [dbo].[SalesHistoryMemorialTribute] ADD CONSTRAINT [FK_SalesHistoryMemorialTribute_SalesHistory] FOREIGN KEY ([SalesHistoryKey]) REFERENCES [dbo].[SalesHistory] ([SalesHistoryKey])
GO